<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE stylesheet [
<!ENTITY mesh  "http://www.nlm.nih.gov/mesh/2006#" >
]>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:mesh="http://www.nlm.nih.gov/mesh/2006#" xmlns:skos="http://www.w3.org/2004/02/skos/core#">
	<!--
		Developed by Christophe Dupriez for the ASKOSI project
		http://www.askosi.org Please feel free to modify but please keep this
		reference
<?xml version="1.0"?>

<!DOCTYPE eInfoResult SYSTEM "http://www.ncbi.nlm.nih.gov/entrez/query/DTD/eInfo_020511.dtd" PUBLIC "-//NLM//DTD eInfoResult, 11 May 2002//EN">
-<eInfoResult> -<DbInfo> <DbName>pubmed</DbName> <MenuName>PubMed</MenuName> <Description>PubMed bibliographic record</Description> <Count>21781624</Count> <LastUpdate>2012/05/13 05:55</LastUpdate> -<FieldList> -<Field> <Name>ALL</Name> <FullName>All Fields</FullName> <Description>All terms from all searchable fields</Description> <TermCount>132364878</TermCount> <IsDate>N</IsDate> <IsNumerical>N</IsNumerical> <SingleToken>N</SingleToken> <Hierarchy>N</Hierarchy> <IsHidden>N</IsHidden> </Field>
	-->
	<xsl:output method="xml" version="1.0" omit-xml-declaration="no"
		indent="no" encoding="utf-8" />

	<xsl:template match="text()">
		<!--
			Do nothing. Override, effectively, the "Built-In" rule which will
			process all text inside elements otherwise not matched by any
			xsl:template. Note: With this in place, be sure to then provide
			templates or "value-of" statements to actually _get_ the (desired)
			text out to the result document!
		-->
	</xsl:template>

	<xsl:template match="/eInfoResult/DbInfo">
		<xsl:call-template name="oneConcept" />
	</xsl:template>

	<xsl:template name="oneConcept">
		<xsl:element name="concept">
			<xsl:attribute name="about"><xsl:value-of
				select="./DbName" /></xsl:attribute>
			<xsl:variable name="about" select="./DbName" />
			<xsl:element name="prefLabel">
				<xsl:value-of select="./MenuName" />
			</xsl:element>
			<xsl:element name="scopeNote">
				<xsl:value-of select="./Description" />
			</xsl:element>
			<xsl:element name="update">
				<xsl:value-of select="./LastUpdate" />
			</xsl:element>
			<xsl:element name="editorialNote">
				<xsl:value-of select="./Count" />
			</xsl:element>
		</xsl:element>
	</xsl:template>
</xsl:stylesheet>
